package com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.intergration.dao.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiConditionDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiMedicalOrgDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.PaginationQueryDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.intergration.dao.KpiMedicalOrgDAO;
import com.paic.pafa.biz.dao.BaseDAO;

@Service("kpiMedicalOrgDAO")
public class KpiMedicalOrgDAOImpl extends BaseDAO implements KpiMedicalOrgDAO {
	/**
	 * 查询医院维度的指标数据
	 * */
	@Override
	public List<KpiMedicalOrgDTO> getKpiData(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		List<KpiMedicalOrgDTO> list = (List<KpiMedicalOrgDTO>) this._list("org.querykpi", condition);
		return list;
	}
	
	/**
	 * 查询医院维度的指标单一数据
	 * */
	@Override
	public Object getSingleKpiData(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		return this._queryForObject("org.querySinglekpi", condition);
	}

	/**
	 * 查询医院维度的指标数据-指标分析器
	 * */
	@Override
	public List<KpiMedicalOrgDTO> getKpiAnalyzeData(PaginationQueryDTO condition) {
		// TODO Auto-generated method stub
		List<KpiMedicalOrgDTO> list = (List<KpiMedicalOrgDTO>) this._list("org.querykpiAnalyze", condition);
		return list;
	}

	/**
	 * 查询医院维度的指标数据-数量-指标分析器
	 * */
	@Override
	public int getKpiAnalyzeCount(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		int count = this._getInt("org.querykpiAnalyzeCount", condition);
		return count;
	}

}
